package repositories;

import java.util.Collection;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import domain.Team;

@Repository
public interface TeamRepository extends JpaRepository<Team,Integer>{

	// List the non finished projects
		@Query("select g from Group g")
		Collection<Team> findAllGroups();

}
